<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>13元素常用属性</title>
	<script>
		window.onload = function(){
			var box = document.getElementById('box');

			// box.innerHTML = '替换'
			// box.outerHTML = '替换'

			// console.log(box.innerText);
			box.innerText = '<p>innerText</p>'
		}
	</script>
</head>
<body>
	<div id="box">
		<h4>数据列表</h4>
		<ul>
			<li>数据1</li>
			<li>数据2</li>
			<li>数据3</li>
			<li>数据4</li>
			<li>数据5</li>
		</ul>
	</div>
</body>
</html>